package com.qsboss.demo.mapper;

import com.github.pagehelper.Page;
import com.qsboss.demo.pojo.TbUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 军哥
 * @version 1.0
 * @description: TbUserMapper
 * @date 2023/10/22 16:33
 */

public interface TbUserMapper {

    void addUser(TbUser TbUser);
    TbUser getUserByName(String userName);
    TbUser getUserByMail(@Param("userMail") String userMail);
    TbUser getUserByMobile(String userMobile);
    List<TbUser> getUserList();
    Page<TbUser> getUserByPage();

    Page<TbUser> getCustomerByPage();

    TbUser getUserById(@Param("userId") Integer userId);
}
